SNMP Trap Recommendation

MOMI does not have the ability to directly generate SNMP traps.

 

However, the NonStop System has a 'built-in' capability to convert EMS messages into SNMP traps. This is described in NonStop System Manual SNMP Configuration and Management Manual. In particular, you might want to start with section 9. The manual is a little old, but all S-Series and later NonStop Systems automatically have this software installed.

 

The concept is a MOMI alarm generates an EMS message, the EMS message is read by an EMS Distributor, the EMS Distributor sends to an SNMP Agent, and the SNMP Agent generates the SNMP trap.

 

The manual for the NonStop SNMP is somewhat confusing, but here is some 'quick start' information to get you in the right direction (this is just a sample) -

 

a) On the NonStop System start an SNMP agent to send traps to a destination (an IP address). The TACL obey file below starts an agent which is then configured to send traps to a PC with an IP 192.168.20.21:

== start snmp agent

SNMPAGT / NAME $trap ,CPU 1,PRI 170, TERM $ZHOME,OUT $ZHOME,NOWAIT / &

0, TCPIP^PROCESS^NAME $ztc0

 

== clear existing destinations

== and add new (the IP address

== is where traps are sent)

scf delete trapdest $trap.#*

 

scf add trapdest $trap.#mypc, hostaddr "192.168.20.21"

 

scf start trapdest $trap.#*

 

 

b) Create an EMS filter (copy text below to an edit file named FILTER) to control what events are passed. In this example, all events pass:

 

filter MYFILTER;

begin

destination

rid 1,

type process,

name =_snmp_agent,

format off;

 

[#def ssid^structure struct

begin

char z^owner(0:7);

int z^number;

int z^version;

end;]

pass;

end;

 

c) Compile the filter. This is a one-time action unless the filter is changed:

#PUSH DUMMY

#LOAD /KEEP 1, LOADED DUMMY/ $SYSTEM.ZSPIDEF.ZSPITACL

#POP DUMMY

EMF /IN filter/ filter

 

d) enter the define =_snmp_agent (which is referenced by the filter) and point to $trap started earlier then start the EMS distributor:

== add output destination (note .#TRAP is required)

delete define **

add define =_snmp_agent,file $trap.#TRAP

 

== start snmp agent

emsdist / NAME $etrap ,CPU 0,PRI 170,TERM $ZHOME,OUT $ZHOME,NOWAIT / &

type printing, collector $0, filter filter

 

e) generate some EMS messages to $0 and view the traps at the destination specified above:

 

A program to display traps on your PC was found at (no affiliation with us - no guarantees - just the result of a Google search):

 

http://www.bttsoftware.co.uk/snmptrap.html

 

(software is very simple - did not require an install - download, unzip and run)